package com.sxpi.zixun.common.enums;

/**
 * @Author: 董伟豪
 * @Date: 2022/6/10 15:56
 */
public enum AdminUserResultEnum implements AdminResultInterface{

    USER_NULL_ERROR(100601, "用户不存在"),
    USER_SERVER_ERROR(100602, "服务出现故障"),
    USER_INPUT_USERNAME_ERROR(100603, "用户名输入有误"),
    TOKEN_ERROR(100604, "token失效"),
    TOKEN_NOT_FOUND(100605, "token无效或者不能为空"),
    USER_FORBIDDEN_ERROR(100606, "用户异常，请联系管理员"),
    USER_NAME_NOT_EMPTY(100607, "账号不能为空"),
    USER_PWD_EMPTY(100608, "密码不能为空"),
    USER_INPUT_PASSWORD_ERROR(100609, "密码输入有误"),
    USER_LOGIN_UUID_EMPTY(100610, "会话过期...."),
    KFC(10002,"KFCError：Today is not Thursday, but I want to go to KFC, Please give me 100￥"),
    USER_CODE_NOT_EMPTY(110611, "验证码不能为空"),
    USER_CODE_PAST_DUE(110612, "验证码过期"),
    USER_CODE_INPUT_ERROR(110613, "验证码输入有误"),
    USER_LOGIN_SAME(100614, "您已经在别的地方登录了"),
    ACCOUNT_REG_ERROR(100615, "账号已经被注册了"),
    ID_NOT_EMPTY(100616, "id不能为空"),
    USER_ROLE_AUTH_ERROR(100617,"授权失败"),
    NULL_ERROR(120001,"内容&id不允许为空");

    private Integer code;
    private String msg;

    AdminUserResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
